package com.wfs.object;

/**
 * 学习类跟对象的区别
 * 类是模板，对象是实例
 */
public class StudentTest {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "张三";
        s1.age = 18;
        s1.chinese = 90;
        s1.english = 80;
        s1.math = 70;
        System.out.println(s1.getAverage());
        System.out.println(s1.getSum());
        System.out.println(s1.name+"的平均分是："+s1.getAverage());
        System.out.println(s1.name+"的总分是："+s1.getSum());
    }
}
